 ,     !
-   ,   :

///////////////////////////////////////////////////////////////////////////////////////

1. ../str/anketa.php

  ,  ,       !

if (file_exists(('../files/bar/' . $user['id'] . '.gif'))) {
    echo '<img src="../files/bar/' . $user['id'] . '.gif" width="350" height="19" alt="' . $user['name'] . '" /><br />';  
 } else {
//   
echo '<a href="http://anires.ru/no-bar.jpg"><img src="http://anires.ru/no-bar.jpg" alt=" !" border="0" /></a><br />';     
}

////////////////////////////////////////////////////////////////////////////////////////////////////

2. ../forum/index.php

     :

	if (file_exists(('../files/bar/' . $res['user_id'] . '.gif'))) {
    echo '<img src="../files/bar/' . $res['user_id'] . '.gif" width="350" height="19" alt="' . $user['name'] . '" /><br />';   
 } else {
//      ,   -    ,      !
/*
echo '<a href="http://.ru/no-bar.jpg"><img src="http://.ru/no-bar.jpg" alt=" !" border="0" /></a><br />';     
*/
}

//////////////////////////////////////////////////////////////////////////////////////////////

3. ../str/my_data.php

 

if (isset($_GET['delavatar'])) {
    //  
    @unlink('../files/avatar/' . $user['id'] . '.jpg');
    echo '<div class="rmenu"> </div>';

//////////////////////////////////////////////////////////////////	
	


if (isset($_GET['delbar'])) {
    //  
    @unlink('../files/bar/' . $user['id'] . '.gif');
    echo '<div class="rmenu"> </div>';	
}
if (isset($_GET['delavatar'])) {
    //  
    @unlink('../files/avatar/' . $user['id'] . '.jpg');
    echo '<div class="rmenu"> </div>';	

/////////////////////////////////////////////////////////////////
,  -


echo '<li>:<br />';
$link = '';
if (file_exists(('../files/bar/' . $user['id'] . '.gif'))) {
    echo '<img src="../files/bar/' . $user['id'] . '.gif" width="350" height="19" alt="' . $user['name'] . '" /><br />';
    $link = ' | <a href="my_data.php?id=' . $user['id'] . '&amp;delbar"></a>';
 } else {
//     -   !
echo '<a href="http://.ru/no-bar.jpg"><img src="http://.ru/no-bar.jpg" alt=" !" border="0" /></a><br />';     
}
echo '<small><a href="my_images.php?act=up_bar&amp;id=' . $user['id'] . '"></a> | <a href="bar.php?id=' . $user['id'] . '">  </a>' . $link . '</small></li>';

////////////////////////////////////////////////////////////////////////

4. ../str/my_images.php

   :

     echo '  ,       .</small></div>';
        }
	
//////////////////////////////////////////////////////////////////////////////////
	


		case 'up_bar' :
        echo '<div class="phdr"> !<br/>    : <b><font color="red">350</font></b> !<br/>   : <b><font color="red">'.$datauser['balans'].'</font></b> </div>';
        if (isset ($_POST['submit'])) {
            $handle = new upload($_FILES['imagefile']);
            if ($handle->uploaded) {
                //  
                $handle->file_new_name_body = $user['id'];
                //$handle->mime_check = false;
                $handle->allowed = array('image/gif');
                $handle->file_max_size = 1024 * $flsz;				
                $handle->process('../files/bar/');
                if ($handle->processed) {

/////  350   ,     /////
mysql_query("UPDATE `users`SET `balans`=balans-350 WHERE `id` = '$user_id'");

        echo '<div class="phdr"><br/>    <b><font color="red">'.$datauser['balans'].'</font></b> . <br/>   !<br />    350 ! <br/><a href="my_data.php?id=' . $user_id . '">  </a></div>';
                }
                else {
                    echo display_error($handle->error);
                }
                $handle->clean();
            }
        }
        else {
            echo '<form enctype="multipart/form-data" method="post" action="my_images.php?act=up_bar&amp;id=' . $user['id'] . '"><div class="menu"><p>';
            echo ' :<br /><input type="file" name="imagefile" value="" />';
            echo '<input type="hidden" name="MAX_FILE_SIZE" value="' . (1024 * $flsz) . '" />';
            echo '</p><p><input type="submit" name="submit" value="" />';
            echo '</p></div></form>';
            echo '<div class="phdr"><small>     GIF!<br />     ' . $flsz . ' .<br />';
            echo '     ,      32019.<br />';
            echo '    (  )<br />';
            echo '   - !'; 
            echo '  ,       .</small></div>';
        }
		
//////////////////////////////////////////////////////////////////////////////////

  -     +  .....
    str!!!!!!!!!!!!!!
111my_images.php
///////////////////////////////////////////////////////////////////////////////////


      !

...................................................
   !

 :05/08/11


	